// $Id: input.cpp 2 2009-09-02 08:47:42Z joseph2002 $
/*
 * Copyright 2009 Joseph Wu
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 *
 * For more information, see http://xpcomplus.sourceforge.net
 */

#include <boost/assert.hpp>
#include <xpgen/input.hpp>
#include <xpgen/model.hpp>

using namespace std;

namespace xpgen {

input::input() :
    verbose(false),
    module_(0)
{
}

input::~input()
{
}

void input::reset()
{
    module_ = 0;

    do_reset();
}

void input::do_all(module_decl* module)
{
    BOOST_ASSERT(module);

    reset();
    module_ = module;
    module_->interfaces.clear();

    do_module();
}

void input::do_reset()
{
    // noop
}

} // namespace xpgen
